import {API} from './config';
import CustomRequest from '@/utils/Request'

/* 
* 突出清查分页列表
*/
const pageList = async (params = {}) => {
  return CustomRequest({
    api: API.checkBookPage,
    method: 'post',
    params
  })
}

/* 
* 详情分页列表
*/
const pageUnitList = async (params = {}) => {
  return CustomRequest({
    api: API.checkBookUnitPage,
    method: 'post',
    params
  })
}

/* 
* 添加
*/
const add = async (params = {}) => {
  return await CustomRequest({
    api: API.checkBookAdd,
    method: 'post',
    params
  })
}

/* 
* 详情
*/
const detail = async (id) => {
  return await CustomRequest({
    api: API.checkBookDetail +`/${id}`
  })
}

export {
  add,
  detail,
  pageList,
  pageUnitList
}